import 'package:http/http.dart' as http;
import 'package:ty_music_app/baseUrl.dart';

Future<String> sayHello() async {
  final response=await http.get(Uri.parse('$baseUrl/hello'));
  if (response.statusCode == 200) {
    //print('aa');
    return response.body;
  } else {
    throw Exception('请求出错');
  }
}